<?php
/*
 * 物联网
 */
namespace app\home\controller;

use app\common\controller\IndexBase;
use think\facade\Session;
use think\facade\Db;

class Iot extends IndexBase
{
    protected function initialize()
    {
        parent::initialize();
    }

    //物联网
    public function index()
    {
        $uid = $this->hashids->decode(UserId());
        !$uid && $this->redirect(url('@user')); // 登录直接跳转
        return $this->fetch('',['info'=>Db::table('user')->find($uid)]);
    }




}